<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML {$html_attrs}><HEAD><TITLE>{$caption proforma_invoices}</TITLE>
<link REL="stylesheet" href="include/style.css" type="text/css"><!--[if IE]><link REL="stylesheet" href="include/styleIE.css" type="text/css"><![endif]-->{BEGIN style_block}
<STYLE>
#center_block{$id} {width:automargin:0 auto;min-width:500px;}
#contents_block{$id} {text-align:center;}
#header_block{$id} {white-space:nowrap;height:31px;padding-top:5px;text-align:center;}
#main_block{$id} {padding:10px 0;text-align:center;}
#inmain_block{$id} {margin:0 10px}
#fields_block{$id} {width:100%;margin-top:10px;}
#fields_block{$id} td.es{padding:4px 0 4px 10px;}
#buttons_block{$id} {padding-bottom:5px;white-space:nowrap;}
#required_block{$id} {text-align:left;padding:5px}
#buttons_block{$id} > * {margin:0 2px}
</STYLE>
<!--[if IE]>
<STYLE>
#main_block{$id} {padding:10px 10;}
#inmain_block{$id} {margin:0 0px;width:100%}
</STYLE>
<![endif]-->{END style_block}
<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY {$bodyattrs}>{BEGIN body}{$header}&nbsp; 
{BEGIN flybody}<TABLE id="center_block{$id}" style="WIDTH: 536px" align=center>
  <TBODY>
  <TR height=22>
    <TD id="contents_block{$id}" style="WIDTH: 522px"><B class=xtop><B 
      class="rb1 rb1_top"></B><B class="rb2 rb2_top"></B><B 
      class="rb3 rb3_top"></B><B class="rb4 rb4_top"></B></B>
      <DIV class=top id="header_block{$id}" style="WIDTH: 521px; HEIGHT: 31px">
      {$caption proforma_invoices}, {mlang_message ADD_NEW_RECORD} </DIV>
      <DIV class=xboxcontentb id="main_block{$id}">
      <DIV class=xboxcontentb id="inmain_block{$id}" style="WIDTH: 100%; HEIGHT: 15px">
      {BEGIN message_block}<DIV class=downedit id="message_block{$id}">{$message}</DIV>{END message_block}
      {BEGIN message_block}<DIV class=downedit>&nbsp;</DIV>{END message_block}&nbsp;</DIV></DIV></TD>
    <TD class=editshade_cb style="WIDTH: 5px">&nbsp;</TD></TR>
  <TR>
    <TD class="es editshade_b" style="WIDTH: 517px">
      {BEGIN message_block}<DIV class=downedit>
      <TABLE borderColor=#7d9ec0 cellSpacing=1 cellPadding=1 rules=all 
      width="100%" bgColor=#ffffff border=1>
        <TBODY>
        <TR>
          <TD style="WIDTH: 318px">&nbsp;{$Section Commercial1}</TD>
          <TD style="WIDTH: 185px" rowSpan=2>&nbsp;{$Section Additional_Charges1}&nbsp;</TD></TR>
        <TR>
          <TD style="WIDTH: 318px">&nbsp;{$Section Invoice_Details1}</TD></TR>
        <TR>
          <TD style="WIDTH: 318px">&nbsp;{$Section Shipment_Details1}</TD>
          <TD style="WIDTH: 185px">&nbsp;{$Section Others1}</TD></TR></TBODY></TABLE></DIV>{END message_block}
      <DIV class=downedit2 id="buttons_block{$id}">
      {BEGIN legend}<DIV id="required_block{$id}"><IMG alt=bullet 
      src="images/icon_required.gif"> - {mlang_message REQUIRED_FIELD}</DIV>{END legend}&nbsp;&nbsp;&nbsp; 
      </DIV><B class=xbottom><B class=xb4a></B><B class=xb3a></B><B 
      class=xb2a></B><B class=xb1a></B></B>
      <DIV></DIV>
      <DIV></DIV><B class=xbottom><B class=xb4b4></B><B class=xb3b4></B><B 
      class=xb2b4></B></B></TD></TR></TBODY></TABLE>{END flybody}{BEGIN detail_tables}
<P>{$displayDetailTable_proforma_invoice_items} 
</P>
<P>&nbsp;</P>
<P>{END detail_tables}<INPUT id=grand_total_sum readOnly value=0> 
<TABLE style="WIDTH: 100%; HEIGHT: 26px; TEXT-ALIGN: center" cellSpacing=1 
cellPadding=1 width=865 border=0>
  <TBODY>
  <TR>
    <TD style="WIDTH: 668px">{BEGIN cancel_button}<SPAN class=buttonborder>{$legendBreak}<INPUT class=button type=button value="{mlang_message CANCEL}" {$cancelbutton_attrs}>&nbsp;</SPAN>{END cancel_button}&nbsp; 
      {BEGIN back_button}<SPAN class=buttonborder><INPUT class=button type=button value="{mlang_message BACK_TO_LIST}" {$backbutton_attrs}>&nbsp;&nbsp;{BEGIN save_button}<SPAN class=buttonborder><INPUT class=button type=submit value="{mlang_message SAVE}" {$savebutton_attrs}></SPAN>{END save_button}</SPAN>{END back_button}</TD></TR></TBODY></TABLE><BR><BR>{$footer} </P>
<SCRIPT>

function calculateTotal(){
var total=0;
$('input[id~="total_price"]').each(function(){
total+=$('grand_total_sum').val();

});
$('grand_total_sum').val(total);
}
</SCRIPT>
{END body}</BODY></HTML>
